﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%@ Import Namespace="Wikey.Domain.Web"%>
<div id='logon-box'>
  Welcome <b><%= Html.Encode(Authorization.CurrentUserName) %></b>!

<% if (!Authorization.IsGuest) { %>
      <%= Html.ActionLink("Log Off", "LogOff", "Account") %>
<% } else { %> 
        <%= Html.ActionLink("Login", "Login", "Account") %> or 
        <%= Html.ActionLink("Register", "Registration", "Account") %>
<% } %>
</div>